<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<div id="projectWizard">

	<div style="padding:0" class="content tabbed">
		<div id="wiz_basicInfo">
			<div class="header">
				<h2>1.基本信息</h2>
			</div>

			<table class="form-table">
				<tr>
					<td class="td1">项目名称：</td>
					<td class="td2" colspan="3">${model.name }</td>

				</tr>
				<tr>


					<td class="td1">项目编号：</td>
					<td class="td2">${model.code }</td>
					<%-- <td class="td1">项目级别：</td>
					<td class="td2">${model.projectLevel }</td> --%>
				</tr>

				<tr>
					<td class="td1">项目类型：</td>
					<td class="td2">${model.projectType }</td>
					<td class="td1">合同编号：</td>
					<td class="td2">${model.contractNo }</td>
				</tr>
				<tr>
					<td class="td1">项目经理：</td>
					<td class="td2">${model.managerName }</td>

					<td class="td1">销售：</td>
					<td class="td2">${model.sellerName }</td>
				</tr>
				<tr>
					<td class="td1">项目起止日期：</td>
					<td class="td2"><fmt:formatDate value="${model.startDate }"
							pattern="yyyy-MM-dd" />到<fmt:formatDate
							value="${model.endDate }" pattern="yyyy-MM-dd" /></td>
					<td class="td1">项目状态：</td>
					<td class="td2">${model.status }</td>
				</tr>
				<tr>
					<td class="td1">项目金额：</td>
					<td class="td2">${model.account }(元)</td>
					<td class="td1">工作日历：</td>
					<td class="td2" colspan="3">${appCalendarConfigName}</td>

				</tr>

				<tr>
					<td class="td1">备注：</td>
					<td class="td2" colspan="3">${model.memo }</td>
				</tr>


				<tr>
					<td class="td1">附件：
					<td class="td2" colspan="3">(附件包括本项目的招标文件、投标文件、合同等相关文档)<br />
						<isperp:uploader readonly="true" sourceId="${model.id }"
							id="projectFiles"></isperp:uploader>
					</td>
				</tr>

				<tr>
					<td class="td1">项目配置项描述：</td>
					<td class="td2" colspan="3">${model.confDescription }</td>
				</tr>


				<tr>
					<td class="td1">客户名称：</td>
					<td class="td2">${model.cusCustomerName }</td>
					<td class="td1">邮箱：</td>
					<td class="td2">${model.customerEmail }</td>
				</tr>
				<tr>
					<td class="td1">联系人：</td>
					<td class="td2">${model.customerLinkman }</td>
					<td class="td1">联系电话：</td>
					<td class="td2">${model.customerLinktel }</td>
				</tr>
				<tr>

					<td class="td1">项目地址：</td>
					<td class="td2" colspan="3">${model.projectAddress }</td>
				</tr>
			</table>

		</div>
		<div class="header">
			<h2>2.服务范围</h2>
		</div>
		<div id="wiz_service">
			<div id="wiz_service_content">

				<isperp:grid url="project/service/listDetail?projectId=${model.id }"
					gridTitle="已选服务目录" gridId="serviceGrid" pager="servicePager"
					idFieldName="id" showSearchbar="false" showPager="false"
					cusFormatterActions="true" multiselect="false" showToolbar="false"
					cusViewUrl="serviceCatalog/service/view">
					<jsp:body>
					<isperp:column name="id" title="id" hidden="true"></isperp:column>
			
					<isperp:column name="code" title="编号" width="80">
					</isperp:column>
					<isperp:column name="name" title="名称" width="100">
					</isperp:column>

					<isperp:column name="service_way" title="服务方式" width="80">
					</isperp:column>
					<isperp:column name="service_response" title="服务响应" width="80">
					</isperp:column>
					</jsp:body>
				</isperp:grid>

			</div>

		</div>
		<div class="header">
			<h2>3.人力资源计划</h2>
		</div>
		<div id="wiz_member">

			<isperp:grid
				url="project/member/projectMemberList?projectId=${model.id }"
				showSearchbar="false" gridId="projectMemberGrid"
				cusFormatterActions="true" cusDialogSize="normal"
				showToolbar="false" cusViewUrl="project/member/view"
				showPager="false" height="auto" multiselect="false"
				ondbClickRowEvent="projectMemberGrid.view(rowid);">

				<jsp:body>	
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="member_name" title="姓名" width="100">
				</isperp:column>
				<isperp:column name="position_name" title="职位" width="120">
				</isperp:column>
				<isperp:column name="salary" title="月薪(元)" width="80">
				</isperp:column>
				<isperp:column name="social_insurance" title="社保(元)" width="80">
				</isperp:column>
				<isperp:column name="other_subsidy" title="其它补助(元)" width="80">
				</isperp:column>
				</jsp:body>
			</isperp:grid>

		</div>
		<div class="header">
			<h2>4.实施计划</h2>
		</div>
		<div id="wiz_plan">

			<isperp:grid url="task/planTask/list?projectId=${model.id }"
				gridId="planTaskGrid" showSearchbar="false" height="auto"
				cusViewUrl="task/planTask/view?projectId=${model.id }"
				multiselect="false" cusDialogSize="normal" rowNum="10"
				ondbClickRowEvent="planTaskGrid.view(rowid);" showToolbar="false">

				<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="taskCode" title="编号" width="40">
				</isperp:column>
				<isperp:column name="projectStage" title="项目阶段" width="60">
				</isperp:column>
				<isperp:column name="taskName" title="任务名称" width="120">
				</isperp:column>
				<isperp:column name="taskPriority" title="重要程度" width="60">
				</isperp:column>
				<isperp:column name="taskPrincipalName" title="负责人" width="60">
				</isperp:column>
				<isperp:column name="excuteTypeName" title="执行类型" width="60">
				</isperp:column>
				<%--  <isperp:column name="excuteTimeStart" title="开始执行时间" width="100">
				</isperp:column>  --%> 
				</jsp:body>

			</isperp:grid>
		</div>
		<div class="header">
			<h2>5.项目预算</h2>
		</div>
		<div id="wiz_cost"></div>
		<div class="header">
			<h2>6.服务质量</h2>
		</div>
		<div id="wiz_quality">
			<isperp:grid
				url="slm/serviceAgreement/listDetail?projectId=${model.id }"
				gridId="serviceAgreementGrid" cusViewUrl="slm/serviceAgreement/view"
				cusDialogSize="normal"
				ondbClickRowEvent="serviceAgreementGrid.view(rowid);"
				showSearchbar="false" multiselect="false" showPager="false"
				showToolbar="false" height="auto">

				<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="name" title="名称" width="100">
				</isperp:column>
				<isperp:column name="slm_type" title="类型" width="50">
				</isperp:column>
				<isperp:column name="goal" title="合规性目标(%)" width="80">
				</isperp:column>
				<isperp:column name="use_project_calendar" title="服务响应" width="80"
						isFormatterFun="true"
						formatter="if(cellvalue==1)return '项目日历';return '7*24服务';">
				</isperp:column>
				<isperp:column name="service_way" title="服务方式" width="80">
				</isperp:column>

				<isperp:column name="slm_status" title="状态" width="80">
				</isperp:column>
				</jsp:body>

			</isperp:grid>
		</div>
	</div>
	<isperp:buttonList>
		<isperp:processButtons processKey="projectProcess"
			processId="${model.processId }" businessKey="${model.id }"></isperp:processButtons>
	</isperp:buttonList>
</div>
<script type="text/javascript">
	$("#wiz_cost").empty().load("project/project/cost?projectId=${model.id}&state=view");
</script>